<?php
namespace app\service;

use app\logic\TestLogic;

class TestService
{
    protected static $instance;

    public static function instance()
    {
        if (!self::$instance) {
            throw new \RuntimeException('TestService implementation not registered');
        }
        return self::$instance;
    }

    public static function register($impl)
    {
        self::$instance = $impl;
    }

    /**
     * @see \app\logic\TestLogic::hello
     */
    public static function hello($name) {}
}
